package cn.bdqn.handler;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.bdqn.service.GetNowBiz;

@Controller
public class UserHandler {

	
	@Autowired
	private GetNowBiz getNowBiz;
	
	@RequestMapping("/user")
	public String user() {
		System.out.println("...........................");
		return "index";
	}
	
	
	@RequestMapping("/getNow2")
	public String getNow2(Model model) {
		model.addAttribute("now", getNowBiz.getNow());
		return "index";
	}
}
